﻿<Window x:Class="swaganomics.Windows.HomeWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		xmlns:Vectors="clr-namespace:swaganomics.Metro.Controls.Vectors"
        xmlns:ClosableTab="clr-namespace:CloseableTabItemDemo"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
        Title="Home Window - swaganomics" Height="700" Width="1200"
        WindowStartupLocation="CenterScreen" AllowsTransparency="True" ResizeMode="NoResize" WindowStyle="None"
        Background="#2d2d30" SnapsToDevicePixels="True" 
        StateChanged="Window_StateChanged">
    <Border BorderBrush="{DynamicResource swaganomicsAccentBrush}" BorderThickness="1,1,1,25">
        <Grid>
            <Grid x:Name="containerFrame">
                <Grid x:Name="homeHeader" VerticalAlignment="Top" HorizontalAlignment="Stretch" Height="60">
                    <Image VerticalAlignment="Top" HorizontalAlignment="Left" Width="35" Margin="5,5,0,0" Opacity="0.98" />
                    <TextBlock x:Name="lblTitle" Text="Start Page - swaganomics" Foreground="#989898" VerticalAlignment="Top" HorizontalAlignment="Stretch" FontSize="15" Margin="45,12,141,0" FontFamily="/Assembly;component/Fonts/#Segoe WP Light" TextTrimming="CharacterEllipsis"/>

                    <Thumb 
						x:Name="headerThumb" 
						Opacity="0" 
						Background="{x:Null}" 
						Foreground="{x:Null}" Margin="0,0,0,0" Height="40" VerticalAlignment="Top"
                        DragDelta="headerThumb_DragDelta"
                        MouseDoubleClick="headerThumb_MouseDoubleClick"
						/>

                    <StackPanel x:Name="homeHeaderActionButtons" Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Height="26" Margin="0,0,0,0">
                        <Button x:Name="btnActionMinimize" ToolTip="Minimize" Width="34" Height="26" Margin="0" Style="{StaticResource WindowActionButton}" VerticalAlignment="Top" d:LayoutOverrides="Height" Click="btnActionMinimize_Click">
                            <Vectors:MinimizeModule Width="34" Height="26"/>
                        </Button>

                        <Button x:Name="btnActionRestore" ToolTip="Restore" Width="34" Height="26" Margin="0" Style="{StaticResource WindowActionButton}" Click="btnActionRestore_Click">
                            <Vectors:RestoreModule Width="34" Height="26"/>
                        </Button>
                        <Button x:Name="btnActionMaxamize" ToolTip="Maxamize" Width="34" Height="26" Margin="0" Style="{StaticResource WindowActionButton}" Click="btnActionMaxamize_Click">
                            <Vectors:MaxamizeModule Width="34" Height="26"/>
                        </Button>

                        <Button x:Name="btnActionClose" ToolTip="Close" Width="34" Height="26" Margin="0" Style="{StaticResource WindowActionButton}" Click="btnActionClose_Click">
                            <Vectors:CloseModule Width="34" Height="26"/>
                        </Button>
                    </StackPanel>

                    <Menu Margin="0,40,0,0" VerticalAlignment="Top" HorizontalAlignment="Stretch" Background="{x:Null}" Foreground="{x:Null}">
                        <MenuItem Margin="5,0,0,0" Header="FILE" Foreground="White" FontFamily="/Assembly;component/Fonts/#Segoe WP Light" BorderBrush="{x:Null}" FontSize="13.333">
                            <MenuItem IsEnabled="True" Header="Open Cache File" Command="ApplicationCommands.Open" x:Name="menuOpenCacheFile" />
                            <MenuItem Header="Open Map Information" x:Name="menuOpenCacheInfomation" />
                            <MenuItem Header="Open Map Image" x:Name="menuOpenCacheImage" />
                            <Separator />
                            <MenuItem Header="Exit" x:Name="menuCloseApplication" InputGestureText="Alt+F4" />
                        </MenuItem>
                        <MenuItem Margin="5,0,0,0" Header="EDIT" Foreground="White" FontFamily="/Assembly;component/Fonts/#Segoe WP Light" BorderBrush="{x:Null}" FontSize="13.333">
                            <MenuItem Header="Settings" x:Name="menuOpenSettings" />
                        </MenuItem>
                        <MenuItem Margin="5,0,0,0" Header="VIEW" Foreground="White" FontFamily="/Assembly;component/Fonts/#Segoe WP Light" BorderBrush="{x:Null}" FontSize="13.333">
                            <MenuItem Header="Start Page" x:Name="menuViewStartPage" />
                        </MenuItem>
                        <MenuItem Margin="5,0,0,0" Header="XBDM" Foreground="White" FontFamily="/Assembly;component/Fonts/#Segoe WP Light" BorderBrush="{x:Null}" FontSize="13.333"/>
                        <MenuItem Margin="5,0,0,0" Header="HELP" Foreground="White" FontFamily="/Assembly;component/Fonts/#Segoe WP Light" BorderBrush="{x:Null}" FontSize="13.333">
                            <MenuItem Header="About swaganomics" x:Name="menuHelpAbout" />
                        </MenuItem>
                    </Menu>
                </Grid>
                <Grid x:Name="homeContent" Margin="0, 70, 0, 0">
                    <TabControl x:Name="homeTabControl" Background="{x:Null}" BorderBrush="{DynamicResource swaganomicsAccentBrush}" Foreground="White" BorderThickness="0,2,0,0" Margin="0" Padding="2" SelectionChanged="homeTabControl_SelectionChanged">
                        
                    </TabControl>
                </Grid>
            </Grid>

            <TextBlock x:Name="Status"  Margin="5,0,0,-20" VerticalAlignment="Bottom" HorizontalAlignment="Left" Text="Ready..." Foreground="White" FontFamily="/Assembly;component/Fonts/#Segoe WP" />

            <Grid Margin="-1, -1, -1, -25" x:Name="homeResizing">
                <!--Resize-->
                <!--Corner-->
                <Vectors:ResizeModule VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,5,5" Cursor="SizeNWSE"/>
                <Thumb x:Name="ResizeDrop" DragDelta="ResizeDrop_DragDelta" Opacity="0" Background="{x:Null}" Foreground="{x:Null}" Width="11" Height="11" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,1,1" Cursor="SizeNWSE" />

                <!--Side-->
                <Thumb x:Name="ResizeRight" DragDelta="ResizeRight_DragDelta" Opacity="0" Background="{x:Null}" Foreground="{x:Null}" Width="8" Margin="0,27.333,0,11" HorizontalAlignment="Right" VerticalAlignment="Stretch" Cursor="SizeWE" />

                <!--Bottom-->
                <Thumb x:Name="ResizeBottom" DragDelta="ResizeBottom_DragDelta" Opacity="0" Background="{x:Null}" Foreground="{x:Null}" Height="8" Margin="0,0,11,0" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Cursor="SizeNS" />
            </Grid>
            
            <Rectangle x:Name="OpacityMask" Margin="-1,-1,-1,-25" Visibility="Visible" Opacity="0.5" Fill="Black" />
        </Grid>
    </Border>
</Window>
